package org.zsl.mybatis.mapper;

import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.type.JdbcType;
import org.zsl.mybatis.model.Role;

public interface RoleMapper{


    @Select("select * from role where role_id=#{roleId}")
    @Results({
            @Result(column = "role_name",property = "roleName",jdbcType = JdbcType.VARCHAR)
    })
    Role selectById(Integer roleId);

}
